package com.sugon.modules.excel;

import cn.afterturn.easypoi.excel.entity.ImportParams;

import java.io.InputStream;

/**
 * EXCEL导入/导出Handler
 *
 * @author YuXD
 * @since 2021-09-18
 */
public interface IExcelHandler {

    /**
     * 从输入流中导入Excel
     *
     * @param excelInputStream excel输入流
     * @return 返回成功导入的行数
     */
    int importExcelFromStream(InputStream excelInputStream) throws Exception;

    /**
     * 获取导入Excel参数配置
     *
     * @return
     */
    ImportParams getImportParams();

}
